package com.github.appintro;

import ohos.global.resource.NotExistException;
import ohos.global.resource.WrongTypeException;

import java.io.IOException;

public interface SlidePolicy {
    /**
     * Whether the user has fulfilled the slides policy and should be allowed to navigate through the intro furtheResourceTable.
     * If false is returned, [.onUserIllegallyRequestedNextPage] will be called.
     *
     * @return True if the user should be allowed to leave the slide, else false.
     */
    boolean isPolicyRespected = false;

    /**
     * Called if a user tries to go to the next slide while into navigation has been locked.
     */
    void onUserIllegallyRequestedNextPage();

    boolean isPolicyRespected();
}
